package com.yangye.pisystem.service;

import com.yangye.picommon.core.service.BaseService;
import com.yangye.pisystem.domain.SysUserRole;

import java.util.List;

/**
 * @author yangye
 * @date 2019/8/2
 */
public interface SysUserRoleService extends BaseService<SysUserRole> {

	/**
	 * 更新用户关联角色信息
	 * @param userId
	 * @param roleIds
	 * @return
	 */
	int updateRoles(Long userId, List<Long> roleIds);

	/**
	 * 获取用户角色信息
	 * @param userId
	 * @return
	 */
	List<SysUserRole> getByUserId(Long userId);
}
